local mondstadt_hash_brown = fk.CreateSkill {
  name = "cf_mondstadt_hash_brown_skill",
}

Fk:loadTranslationTable {
  ["cf_mondstadt_hash_brown_skill"] = "蒙德土豆饼",
  ["#cf_mondstadt_hash_brown_skill"] = "弃置一张牌，回复两点体力并饱腹",
}

mondstadt_hash_brown:addEffect("cardskill", {
  prompt = "#cf_mondstadt_hash_brown_skill",
  mod_target_filter = Util.TrueFunc,
  can_use = function(self, player, card, extra_data)
    if Util.CanUseToSelf(self, player, card, extra_data) then
      return player:getMark("@@cf_baofu-turn") == 0 and player:isWounded()
    end
  end,
  on_effect = function(self, room, effect)
    local from = effect.from
    local to = effect.to
    if not to:isKongcheng() then
      room:askToDiscard(to, {
        min_num = 1,
        max_num = 1,
        skill_name = mondstadt_hash_brown.name,
        cancelable = false,
        include_equip = true,
      })
    end
    if to.dead then return end
    room:recover {
      num = 2,
      who = to,
      card = effect.card,
      skillName = mondstadt_hash_brown.name
    }
    room:addPlayerMark(to, "@@cf_baofu-turn")
  end
})

return mondstadt_hash_brown
